#include "widget.h"
#include "ui_widget.h"
#include<QtDebug>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_agree_clicked()
{
    qDebug()<<"按下了";
}

void Widget::on_pushButton_no_clicked()
{
    bool flag=this->ui->pushButton_agree->isEnabled();
    this->ui->pushButton_agree->setEnabled(!flag);
}
